package com.yejiali.backend.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yejiali.backend.entity.Users;
import com.yejiali.backend.entity.dto.UserDTO;
import com.yejiali.backend.entity.vo.WeChatUser;
import com.yejiali.backend.response.Response;

/**
 * 用户表(Users)表服务接口
 *
 * @author yejiali
 * @since 2025-07-21 15:41:47
 */
public interface UsersService extends IService<Users>{

    Users register(WeChatUser weChatUser);

    /**
     * 获取用户详细信息
     * @param userId
     * @return
     */
    Response<UserDTO> getUsersDetail(Long userId,Long loginUserId);

    /**
     * 模糊匹配用户昵称
     * @param keyword
     * @return
     */
    Response<?> searchUsers(String keyword);

    /**
     * 随机推荐的@用户
     */
    Response<?> randomUsers(Long userId);
}
